import React , {Component} from 'react';
import { Route,  BrowserRouter, Switch} from 'react-router-dom';
import HomeContainer from '../containers/homeContainer';
import LoginContainer from '../containers/loginContainer';
import registerPage from '../pages/registerPage/registerPage';
import App from '../containers/appContainer';
import NotFound from '../components/notFound/NotFound';

export default class Routers extends Component {
    render() {
        return (
            <BrowserRouter >
                <div>
                    <Switch>
                        <Route exact path='/' component={App} />
                        <Route path='/admin' component={HomeContainer} />
                        <Route path='/login' component={LoginContainer} />
                        <Route path='/register' component={registerPage} />
                        <Route component={NotFound} />
                    </Switch>
                </div>
            </BrowserRouter>
        )
    }
}
